import { axios } from '@/utils/request'
export function getTablePage(parameter) {
  parameter.pageNum = parameter.current;
  parameter.pageSize = parameter.size;
  return axios({
    url: '/sys/hr/localService/pageQuery',
    method: 'post',
    data:parameter
  })
}
export function addFall(parameter) {
  return axios({
    url: '/sys/hr/localService/add',
    method: 'post',
    data:parameter
  })
}
export function editFall(parameter) {
  return axios({
    url: '/sys/hr/localService/editLocalService',
    method: 'post',
    data:parameter
  })
}
export function delFall(parameter) {
  return axios({
    url: '/sys/hr/localService/deleteLocalService',
    method: 'post',
    data:parameter
  })
}
export function getFallInfo(id) {
  return axios({
    url: '/sys/hr/localService/query/' + id,
    method: 'get',
  })
}
export function serviceType() {
  return axios({
    url: '/sys/hr/localService/listLocalService',
    method: 'get',
  })
}
export function localServiceCooperateStatusSet(parameter) {
  return axios({
    url: '/sys/hr/localService/localServiceCooperateStatusSet',
    method: 'post',
    data:parameter
  })
}
// 客户资源
export function pageLocalServiceEnterprise(parameter) {
  return axios({
    url: '/sys/hr/enterprise/pageLocalServiceEnterprise',
    method: 'post',
    data:parameter
  })
}
export function localServiceEnterpriseFeeDetail(id) {
  return axios({
    url: `/sys/hr/enterpriseFee/localServiceEnterpriseFeeDetail/${id}`,
    method: 'get'
  })
}